package com.stylefeng.guns.modular.system.warpper;

import java.util.Date;
import java.util.Map;

import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;
import com.stylefeng.guns.core.util.DateUtil;

public class GpRemarkWarpper extends BaseControllerWarpper{

	public GpRemarkWarpper(Object list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
    	map.put("gDate", DateUtil.format((Date)map.get("gDate"), "yyyy-MM-dd"));
    	
    	String JGCYDType = ((String)map.get("JGCYDType"));
    	String font = "";
		if(JGCYDType.equals("不控盘")){
			font = "<font color='DimGray'><b>不控盘</b></font>";
		}else if(JGCYDType.equals("轻度控盘")){
			font = "<font color='BurlyWood'><b>轻度控盘</b></font>";
		}else if(JGCYDType.equals("中度控盘")){
			font = "<font color='Chocolate'><b>中度控盘</b></font>";
		}else{
			font = "<font color='Brown'><b>完全控盘</b></font>";
		}
		map.put("JGCYDType", font);
    }
    
    
}
